

package com.hazelcast.internal.config;

import com.hazelcast.config.DataPersistenceConfig;

public class DataPersistenceConfigReadOnly extends DataPersistenceConfig {
    public DataPersistenceConfigReadOnly(DataPersistenceConfig config) {
        super(config);
    }

    @Override
    public DataPersistenceConfigReadOnly setFsync(boolean fsync) {
        throw new UnsupportedOperationException("This config is read-only");
    }

    @Override
    public DataPersistenceConfigReadOnly setEnabled(boolean enabled) {
        throw new UnsupportedOperationException("This config is read-only");
    }
}
